<?php

use App\Models\menus_manage;
use Illuminate\Database\Seeder;

class YBJMenus extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        $ID=1;

        //1
        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=0;
        $model->menuName="公告";
        $model->nextID=++$ID;
        $model->save();

        //2
        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=0;
        $model->menuName="基数核定";
        $model->nextID=++$ID;
        $model->save();

        //3
        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=0;
        $model->menuName="人员变更";
        $model->nextID=++$ID;
        $model->save();

        //4
        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=0;
        $model->menuName="<span class='iconfont icon-weixin'></span>";
        $model->nextID=++$ID;
        $model->save();


        //5
        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=0;
        $model->menuName="<span class='glyphicon glyphicon-cog'></span>";
        $model->nextID=null;
        ++$ID;
        $model->save();




        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=1;
        $model->menuName="发布公告";
        $model->menuURL="/manage/announcement";
        $model->nextID=null;
        ++$ID;
        $model->save();

        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=2;
        $model->menuName="文件上传";
        $model->menuURL="/manage/jssbSingleUpload";
        $model->nextID=++$ID;
        $model->save();

        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=2;
        $model->menuName="文件下载";
        $model->menuURL="/manage/jssbDownList";
        $model->nextID=null;
        ++$ID;
        $model->save();

        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=3;
        $model->menuName="人员新增";
        $model->nextID=++$ID;
        $model->save();


        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=3;
        $model->menuName="人员减少";
        $model->nextID=++$ID;
        $model->save();

        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=3;
        $model->menuName="人员退休";
        $model->nextID=null;
        ++$ID;
        $model->save();

        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=4;
        $model->menuName="菜单管理";
        $model->nextID=++$ID;
        $model->save();

        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=4;
        $model->menuName="信息推送";
        $model->nextID=null;
        ++$ID;
        $model->save();

        $model=new menus_manage();
        $model->ID=$ID;
        $model->parentID=5;
        $model->menuName="密码修改";
        $model->menuURL="/manage/resetPassword";
        $model->nextID=null;
        ++$ID;
        $model->save();



    }
}
